package com.whyw.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.whyw.entity.User;
import com.whyw.entity.vo.LoginUser;
import com.whyw.entity.vo.UserWithRole;

/**
 * 系统用户表(User)表服务接口
 *
 * @author makejava
 * @since 2025-06-28 18:59:53
 */
public interface UserService extends IService<User> {
    boolean register(User user);

    User loadUserByUsername(String username);

    String login(LoginUser loginUser);

    void deleteToken(Long userId);

    String logout();

    UserWithRole getUserWithRole(Long userId);
}

